#ifndef YXJSON_H
#define YXJSON_H

#include "cJSON.h"

#define yxObject cJSON
#define yxArray  cJSON

#define yxJSONGetObjectItem   cJSON_GetObjectItem
#define yxJSONAddItemToObject cJSON_AddItemToObject
#define yxJSONFree            cJSON_Delete

int    yxJSONGetObjectIntItem(yxObject *obj, const char *key);
double yxJSONGetObjectDoubleItem(yxObject *obj, const char *key);
char  *yxJSONGetObjectStringItem(yxObject *obj, const char *key);

#endif // YXJSON_H
